<template>
  <div id="app">
    <transition name="router-fade" mode="out-in">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
    </transition>
    <transition name="router-fade" mode="out-in">
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </transition>
    <tab-footer v-if="$route.meta.showFooter"></tab-footer>
  </div>
</template>

<script>
import tabFooter from './components/common/footer'
export default {
  name: 'App',
  components: {
    tabFooter
  }
}
</script>

<style>
@import '../src/common/sass/icon.scss';
.router-fade-enter-active,
.router-fade-leave-active {
  transition: opacity .3s;
}

.router-fade-enter,
.router-fade-leave-active {
  opacity: 0;
}
</style>
